﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace _03WPF交互控件与图形
{
	/// <summary>
	/// Window2.xaml 的交互逻辑
	/// </summary>
	public partial class Window2 : Window
	{
		public Window2()
		{
			InitializeComponent();
		}

		private void BtnClose_Click(object sender, RoutedEventArgs e)
		{
			// 关闭 Popup（通过名称访问或绑定控制）
			// 假设 Popup 命名为 "myPopup"，则：myPopup.IsOpen = false;
			chkOpen.IsChecked = false; // 这里通过绑定的复选框关闭
		}
	}
}
